﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace Jemgine.Particles.Modifiers
{
    public class ApplyVelocity : Modifier
    {
        internal override void Apply(ref Particle _particle, Emitter _emitter, float ElapsedSeconds)
        {
            _particle.position += _particle.velocity * ElapsedSeconds;
        }
    }

    public class ConstantAcceleration : Modifier
    {
        public Vector2 Acceleration { get; set; }

        internal override void Apply(ref Particle _particle, Emitter _emitter, float ElapsedSeconds)
        {
            _particle.velocity += Acceleration * ElapsedSeconds;
        }
    }
}
